(C) 1996 AROS - The Amiga Replacement OS


NAME
#include <math.h>
int isnan()
SYNOPSIS
double val

FUNCTION
Check if val is a valid double.

INPUTS
val
Check this.
RESULT
TRUE is val is not a number (NaN) or FALSE if it is a valid number.

NOTES
EXAMPLE
// If this wouldn't crash, then it would print
// "a doesn't contain a valid number".
a = 1.0;
a /= 0.0;

if (isnan(a))
    printf ("a doesn't contain a valid number\n");
else
    printf ("a contains a valid number\n");

BUGS
SEE ALSO
abs(), fabs()
INTERNALS
HISTORY
20.05.1997 aros
Added a couple of floating point math functions from fdlibm by Sun.